package cn.chaohi.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.chaohi.controller.model.report.ReportStatusReq;
import cn.chaohi.dao.report.ReportStatusMapper;
import cn.chaohi.domain.report.UpgradeStatusReport;
import cn.chaohi.service.ReportStatusService;

@Service
public class ReportStatusServiceImpl implements ReportStatusService{
	
	@Resource
	private ReportStatusMapper reportStatusMapper;
	
	/**
	 * 获取配置信息和版本信息
	 */
	public void reportStatusSave (final ReportStatusReq reportStatusReq) {
		UpgradeStatusReport upgradeStatusReport = new UpgradeStatusReport(reportStatusReq);
		reportStatusMapper.reportStatusSave(upgradeStatusReport);
	}
}
